package com.hujia.hjsurprisemeal.service;

import com.hujia.hjsurprisemeal.model.User;

import java.util.List;

public interface UserService {
    int addUser(User user);
    List<User> getAllUsers();
    User getUserById(int id);
    int updateUser(String username, User user); // 更新方法签名

    int updateUser(User user);

    int deleteUser(int id);
    User register(String username, String email, String password);
    User getUserByName(String name);

    User findByName(String name);

    boolean updateUser(Long userId, String name, String email, String password);
}